package com.cn.test1.service;

import com.cn.test1.data.LayoutData;
import com.cn.test1.model.LayoutModel;

import java.util.ArrayList;
import java.util.List;

public class LayoutService {
    public List<LayoutModel> getLayoutTitles() { // 一级标题数据和图片数据
        List<LayoutModel> list = new ArrayList<>();
        LayoutData layoutData = new LayoutData();
        for (int i = 0; i < layoutData.layoutTitles.length; i++) {
            LayoutModel layoutModel = new LayoutModel();
            layoutModel.setLayoutTitles(layoutData.layoutTitles[i]);
            layoutModel.setLayoutTitlesImgs(layoutData.layoutTitlesImgs[i]);
            list.add(layoutModel);
        }
        return list;
    }

    public List<LayoutModel> getLayoutContent1(){// 地产开发模块文本信息1
        List<LayoutModel> list = new ArrayList<>();
        LayoutData layoutData = new LayoutData();
        for (int i = 0; i < layoutData.layoutContent1.length; i++) {
            LayoutModel layoutModel = new LayoutModel();
            layoutModel.setLayoutContent1(layoutData.layoutContent1[i]);
            list.add(layoutModel);

        }
        return list;

    }

    public List<LayoutModel> getLayoutContent2(){// 商业运营模块文本信息2 ,5
        List<LayoutModel> list = new ArrayList<>();
        LayoutData layoutData = new LayoutData();
        for (int i = 0; i < layoutData.layoutContent2.length; i++) {
            LayoutModel layoutModel = new LayoutModel();
            layoutModel.setLayoutContent2(layoutData.layoutContent2[i]);
            layoutModel.setLayoutContent5(layoutData.layoutContent5[i]);
            list.add(layoutModel);
        }
        return list;
    }

    public List<LayoutModel> getLayoutContent3(){// 物业管理金融服务模块文本信息3,4
        List<LayoutModel> list = new ArrayList<>();
        LayoutData layoutData = new LayoutData();
        for (int i = 0; i < layoutData.layoutContent3.length; i++) {
            LayoutModel layoutModel = new LayoutModel();
            layoutModel.setLayoutContent3(layoutData.layoutContent3[i]);
            layoutModel.setLayoutContent4(layoutData.layoutContent4[i]);
            list.add(layoutModel);
        }
        return list;
    }
}
